<script setup lang="ts">
const ThemeMap = {
  colorPrimary: "#673acb",
  fontFamily: "'Dosis', 'NotoSerifSC', sans-serif",
};

// 注册人全局单例message
import { message } from "ant-design-vue";
const [messageApi, contextHolder] = message.useMessage();
import { provide } from "vue";
provide("globalMessage", messageApi);
</script>

<template>
  <a-config-provider
    :theme="{
      token: ThemeMap,
    }"
  >
    <div id="app">
      <contextHolder />
      <router-view />
    </div>
  </a-config-provider>
</template>

<style scoped></style>
